Skip to content

Commit f53fa3b

Browse files
committed
Add basic find-in-files functionality
1 parent ff37a8b commit f53fa3b

10 files changed

Lines changed: 336 additions & 115 deletions

CMakeLists.txt

Lines changed: 20 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,22 @@
11
# -*- CMakeLists.txt generated by CodeLite IDE. Do not edit by hand -*-
22

3-
cmake_minimum_required(VERSION 2.8.11)
3+
cmake_minimum_required(VERSION 3.5)
44

5+
6+
#{{{{ User Code 01
7+
# Place your code here
8+
#}}}}
9+
10+
enable_language(CXX C ASM)
511
# Project name
612
project(notekit)
713

14+
15+
16+
#{{{{ User Code 02
17+
# Place your code here
18+
#}}}}
19+
820
# This setting is useful for providing JSON file used by CodeLite for code completion
921
set(CMAKE_EXPORT_COMPILE_COMMANDS 1)
1022

@@ -130,12 +142,9 @@ add_definitions(${CL_VAR_2})
130142
add_definitions(${CL_VAR_3})
131143
add_definitions(${CL_VAR_4})
132144
add_definitions(-std=c++17)
133-
add_definitions(-O2)
145+
add_definitions(-g)
134146
add_definitions(-Wall)
135-
add_definitions(
136-
-DNDEBUG
137-
)
138-
147+
add_definitions(-Og)
139148

140149
# Linker options
141150
execute_process(COMMAND
@@ -172,19 +181,20 @@ link_directories(
172181

173182
# Define the CXX sources
174183
set ( CXX_SRCS
175-
${CMAKE_CURRENT_LIST_DIR}/settings.cpp
184+
${CMAKE_CURRENT_LIST_DIR}/findinfiles.cpp
176185
${CMAKE_CURRENT_LIST_DIR}/mainwindow.cpp
177186
${CMAKE_CURRENT_LIST_DIR}/main.cpp
178187
${CMAKE_CURRENT_LIST_DIR}/navigation.cpp
188+
${CMAKE_CURRENT_LIST_DIR}/drawing.cpp
179189
${CMAKE_CURRENT_LIST_DIR}/imagewidgets.cpp
180190
${CMAKE_CURRENT_LIST_DIR}/notebook.cpp
181-
${CMAKE_CURRENT_LIST_DIR}/drawing.cpp
191+
${CMAKE_CURRENT_LIST_DIR}/settings.cpp
182192
${CMAKE_CURRENT_LIST_DIR}/about.cpp
183193
)
184194

185195
set_source_files_properties(
186196
${CXX_SRCS} PROPERTIES COMPILE_FLAGS
187-
" -std=c++17 -pthread -pthread -O2 -Wall")
197+
" -std=c++17 -pthread -pthread -g -Wall -Og")
188198

189199
if(WIN32)
190200
enable_language(RC)
@@ -204,7 +214,7 @@ if (HAVE_CLATEXMATH)
204214
endif (HAVE_CLATEXMATH)
205215
#}}}}
206216

207-
add_executable(notekit ${RC_SRCS} ${CXX_SRCS} ${C_SRCS})
217+
add_executable(notekit ${RC_SRCS} ${CXX_SRCS} ${C_SRCS} ${ASM_SRCS})
208218
target_link_libraries(notekit ${LINK_OPTIONS})
209219

210220
target_link_libraries(notekit

0 commit comments

Comments
 (0)