소스 검색

More verbose output when building with CMake

tags/v1.8.0
Xerbo 4 년 전
부모
커밋
7763148aea
1개의 변경된 파일10개의 추가작업 그리고 2개의 파일을 삭제
  1. +10
    -2
      CMakeLists.txt

+ 10
- 2
CMakeLists.txt 파일 보기

@@ -9,9 +9,16 @@ add_executable(aptdec ${C_SOURCE_FILES})

add_compile_definitions(PALETTE_DIR="${CMAKE_SOURCE_DIR}/palettes")

# math
# Math
target_link_libraries(aptdec PRIVATE m)

# Throw errors on warnings on release builds
if(CMAKE_BUILD_TYPE MATCHES "Release")
target_compile_options(aptdec PRIVATE -Wall -Wextra -pedantic -Werror)
else()
target_compile_options(aptdec PRIVATE -Wall -Wextra -pedantic)
endif()

# libpng
target_link_libraries(aptdec PRIVATE PNG::PNG)
if(WIN32 AND NOT MINGW)
@@ -39,7 +46,8 @@ IF(NOT WIN32)
install(TARGETS aptdec DESTINATION "bin/")
install(DIRECTORY "${PROJECT_SOURCE_DIR}/palettes/" DESTINATION "lib/aptdec/palettes")
else()
set(CPACK_GENERATOR "ZIP;NSIS")
#set(CPACK_GENERATOR "ZIP;NSIS")
set(CPACK_GENERATOR "ZIP")
set(CPACK_PACKAGE_FILE_NAME "${CPACK_PACKAGE_NAME}-${CPACK_PACKAGE_VERSION}")

install(TARGETS aptdec DESTINATION "bin/")


불러오는 중...
취소
저장