2013-02-07 04:44:12 +00: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-08 00:21:47 +00:00
|
|
|
toolbox.cpp
|
2013-02-08 03:12:30 +00:00
|
|
|
mm.cpp
|
2013-08-16 03:38:41 +00:00
|
|
|
loader.cpp
|
|
|
|
rm.cpp
|
2013-02-12 22:32:31 +00:00
|
|
|
os.cpp
|
2013-02-25 22:47:58 +00:00
|
|
|
os_internal.cpp
|
2013-03-02 22:39:54 +00:00
|
|
|
os_hfs_dispatch.cpp
|
2013-02-28 23:05:39 +00:00
|
|
|
os_highlevel.cpp
|
2013-05-18 00:14:30 +00:00
|
|
|
os_alias.cpp
|
2013-05-23 00:37:57 +00:00
|
|
|
os_fileinfo.cpp
|
2014-07-24 17:40:57 +00:00
|
|
|
os_gestalt.cpp
|
2015-01-14 22:03:03 +00:00
|
|
|
os_volume.cpp
|
2013-02-15 04:09:05 +00:00
|
|
|
qd.cpp
|
2013-02-21 04:28:13 +00:00
|
|
|
sane.cpp
|
2013-07-08 03:41:28 +00:00
|
|
|
saneparser.cpp
|
2013-08-03 04:33:24 +00:00
|
|
|
pathnames.cpp
|
2013-03-27 03:29:08 +00:00
|
|
|
utility.cpp
|
2014-12-16 18:07:37 +00:00
|
|
|
fs_spec.cpp
|
2014-12-22 14:53:38 +00:00
|
|
|
realpath.c
|
2013-02-07 04:44:12 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
|
2013-07-08 03:41:28 +00: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 04:33:24 +00: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-15 01:05:01 +00:00
|
|
|
set_source_files_properties(
|
2013-08-03 04:33:24 +00:00
|
|
|
saneparser.cpp pathnames.cpp
|
2013-07-15 01:05:01 +00:00
|
|
|
PROPERTIES
|
|
|
|
COMPILE_FLAGS
|
|
|
|
"${CMAKE_CXX_FLAGS} -Wno-unused-variable"
|
|
|
|
)
|
2013-07-08 03:41:28 +00:00
|
|
|
|
2013-02-07 04:44:12 +00:00
|
|
|
add_library(TOOLBOX_LIB ${TOOLBOX_SRC})
|