mpw/toolbox/CMakeLists.txt

48 lines
917 B
CMake
Raw Normal View History

2013-02-06 23:44:12 -05:00
set(CMAKE_INCLUDE_CURRENT_DIR ON)
set(CMAKE_CXX_FLAGS "-std=c++11 -stdlib=libc++ -Wall -Wno-deprecated-declarations -g")
add_definitions(-I ${CMAKE_SOURCE_DIR}/)
set(TOOLBOX_SRC
2013-02-07 19:21:47 -05:00
toolbox.cpp
2013-02-07 22:12:30 -05:00
mm.cpp
2013-08-15 23:38:41 -04:00
loader.cpp
rm.cpp
2013-02-12 17:32:31 -05:00
os.cpp
2013-02-25 17:47:58 -05:00
os_internal.cpp
2013-03-02 17:39:54 -05:00
os_hfs_dispatch.cpp
2013-02-28 18:05:39 -05:00
os_highlevel.cpp
2013-05-17 20:14:30 -04:00
os_alias.cpp
2013-05-22 20:37:57 -04:00
os_fileinfo.cpp
2014-07-24 13:40:57 -04:00
os_gestalt.cpp
2013-02-14 23:09:05 -05:00
qd.cpp
2013-02-20 23:28:13 -05:00
sane.cpp
2013-07-07 23:41:28 -04:00
saneparser.cpp
2013-08-03 00:33:24 -04:00
pathnames.cpp
2013-03-26 23:29:08 -04:00
utility.cpp
fs_spec.cpp
2014-12-22 09:53:38 -05:00
realpath.c
2013-02-06 23:44:12 -05:00
)
2013-07-07 23:41:28 -04:00
add_custom_command(
OUTPUT saneparser.cpp
COMMAND ragel -p -G2 -o saneparser.cpp "${CMAKE_CURRENT_SOURCE_DIR}/saneparser.rl"
MAIN_DEPENDENCY saneparser.rl
)
2013-08-03 00:33:24 -04:00
add_custom_command(
OUTPUT pathnames.cpp
COMMAND ragel -p -G2 -o pathnames.cpp "${CMAKE_CURRENT_SOURCE_DIR}/pathnames.rl"
MAIN_DEPENDENCY pathnames.rl
)
2013-07-14 21:05:01 -04:00
set_source_files_properties(
2013-08-03 00:33:24 -04:00
saneparser.cpp pathnames.cpp
2013-07-14 21:05:01 -04:00
PROPERTIES
COMPILE_FLAGS
"${CMAKE_CXX_FLAGS} -Wno-unused-variable"
)
2013-07-07 23:41:28 -04:00
2013-02-06 23:44:12 -05:00
add_library(TOOLBOX_LIB ${TOOLBOX_SRC})