Cmake flags updated
@@ -4,6 +4,10 @@ project (Tornado)
find_package(OpenCL REQUIRED)
find_package(JNI REQUIRED)
+set(CMAKE_BUILD_TYPE Release)
+set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -O3 -fpermissive -rdynamic -fPIC ")
+set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -O3 -rdynamic -fPIC ")
+
include_directories(
source/
headers/opencl/3.0/include/
@@ -11,7 +15,7 @@ include_directories(
${OPENCL_INCLUDE_DIRS}
)
-file(GLOB_RECURSE SOURCE_FILES "*.c")
+file(GLOB_RECURSE "source/*.c")
add_library(tornado-opencl SHARED
source/OCLCommandQueue.c
source/OCLContext.c
