compile xfile into a static library
This commit is contained in:
parent
f0367d95a0
commit
a243134dca
|
@ -15,11 +15,12 @@ execute_process(
|
||||||
|
|
||||||
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY bin)
|
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY bin)
|
||||||
set(CMAKE_LIBRARY_OUTPUT_DIRECTORY lib)
|
set(CMAKE_LIBRARY_OUTPUT_DIRECTORY lib)
|
||||||
|
set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY lib)
|
||||||
set(CMAKE_C_FLAGS "-Wall -Wextra -std=c99")
|
set(CMAKE_C_FLAGS "-Wall -Wextra -std=c99")
|
||||||
set(CMAKE_C_FLAGS_DEBUG "-DDEBUG=1")
|
set(CMAKE_C_FLAGS_DEBUG "-DDEBUG=1")
|
||||||
|
|
||||||
# external libraries
|
# external libraries
|
||||||
add_library(xfile SHARED extlib/xfile/xfile.c)
|
add_library(xfile STATIC extlib/xfile/xfile.c)
|
||||||
|
|
||||||
# build picrin
|
# build picrin
|
||||||
include_directories(include extlib)
|
include_directories(include extlib)
|
||||||
|
|
Loading…
Reference in New Issue