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-06 23:44:12 -05:00
|
|
|
rm.cpp
|
2013-02-07 22:12:30 -05:00
|
|
|
mm.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
|
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-03-26 23:29:08 -04:00
|
|
|
utility.cpp
|
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-02-06 23:44:12 -05:00
|
|
|
add_library(TOOLBOX_LIB ${TOOLBOX_SRC})
|