77
88project (
99 wowpkg
10- VERSION 0.3.0
10+ VERSION 0.3.1
1111 DESCRIPTION "A CLI World of Warcraft addon manager"
1212 LANGUAGES C
1313)
1414
15- set (CMAKE_C_STANDARD 11)
15+ set (WOWPKG_C_STANDARD 11)
1616
1717option (WOWPKG_ENABLE_SANITIZERS "Build with or without sanitizers" OFF )
1818option (WOWPKG_ENABLE_TESTS "Build tests" OFF )
1919option (WOWPKG_USE_DEVELOPMENT_PATHS "Determines what paths will be used to find some files" OFF )
2020
21+ # Compiler flags that enable warnings.
22+ set (WFLAGS)
23+
24+ # Mainly used for Windows. Adds extra optimization flags when building for
25+ # release builds. These flags get added to WFLAGS.
26+ set (WFLAGS_RELEASE)
27+
28+ # Linker flags.
29+ set (LDFLAGS)
30+
31+ # Mainly used for Windows. Adds extra optimization linker flags for release
32+ # builds. These flags get added to LDFLAGS.
33+ set (LDFLAGS_RELEASE)
34+
35+ # Sanitizer flags.
36+ set (SANSFLAGS)
37+
38+ # Path to catalog directory in project.
39+ set (WOWPKG_CATALOG_PATH)
40+
41+ # Includes all compile time defines.
42+ set (WOWPKG_DEFINES)
43+
44+ # List of libraries that will be linked to targets.
45+ set (WOWPKG_LIBS)
46+
47+ # Path to user files for project. This location is where the program will search
48+ # for user config files and is where it will save user specific data.
49+ set (WOWPKG_USER_FILE_DIR)
50+
2151if (WOWPKG_ENABLE_TESTS AND NOT WOWPKG_USE_DEVELOPMENT_PATHS)
2252 message (WARNING "[${PROJECT_NAME} ] enabling tests without using development paths may cause tests to fail" )
2353endif ()
@@ -41,7 +71,7 @@ if (MSVC)
4171 set (LDFLAGS_RELEASE /DEBUG /INCREMENTAL:NO /OPT:REF /OPT:ICF)
4272 set (LDFLAGS "$<$<CONFIG :Release >:${LDFLAGS_RELEASE} >" )
4373
44- # Alot of the functions suggested by this are not available on other
74+ # A lot of the functions suggested by this are not available on other
4575 # systems -- so just ignore the warnings.
4676 set (WOWPKG_DEFINES _CRT_SECURE_NO_WARNINGS)
4777else ()
@@ -84,9 +114,9 @@ if (WOWPKG_ENABLE_SANITIZERS)
84114
85115 -fsanitize=address
86116 -fsanitize=undefined
87- -fno-sanitize-recover=all
88117 -fsanitize=float-divide-by-zero
89118 -fsanitize=float-cast-overflow
119+ -fno-sanitize-recover=all
90120 -fno-sanitize=null
91121 -fno-sanitize=alignment
92122 )
@@ -156,7 +186,6 @@ if (WIN32)
156186 install (FILES ${PROJECT_SOURCE_DIR} /build/src/Release/cjson.dll DESTINATION bin)
157187 install (FILES ${PROJECT_SOURCE_DIR} /build/src/Release/libcurl.dll DESTINATION bin)
158188 install (FILES ${PROJECT_SOURCE_DIR} /build/src/Release/zlib1.dll DESTINATION bin)
159- install (FILES ${PROJECT_SOURCE_DIR} /build/src/Release/wowpkg.pdb DESTINATION bin)
160189endif ()
161190
162191set (CPACK_VERBATIM_VARIABLES true )
0 commit comments